<kylin-list-page
    [tableGen]="tableGen"
    [statusSelector]="statusSelector"
    [selectorGen]="selectorGen"
    [btnsGen]="btnsGen"
    [queryReqInfo]="queryReqInfo">
</kylin-list-page>

<ng-template #operationTpl let-data="data" let-funSet="funSet">
    <td class="operation" style="text-align: center;">
        <a *ngIf="data?.role !== '超级管理员';else modifyPlayB" (click)="modifyUser(data, funSet)">修改</a>
        <ng-template #modifyPlayB> <a disabled>修改</a></ng-template>

        <nz-divider nzType="vertical"></nz-divider>

        <button nz-popconfirm
                nz-button
                style="padding:0;border:none;background:none;"
                nzTitle="确认删除此用户吗?"
                (nzOnConfirm)="deleteUser(data, funSet)">
            <a *ngIf="data?.role !== '超级管理员';else deletePlayB">删除</a>
            <ng-template #deletePlayB> <a disabled>删除</a></ng-template>
        </button>

        <nz-divider nzType="vertical"></nz-divider>

        <a *ngIf="data?.role !== '超级管理员';else verticalPlayB" (click)="resetPassword(data, funSet)">重置密码</a>
        <ng-template #verticalPlayB> <a disabled>重置密码</a></ng-template>
    </td>
</ng-template>
<kylin-user-manager-detail *ngIf="isVisibleDetails"
                           [(isVisible)]="isVisibleDetails"
                           [userInfo]="selectedUser"
                           [curUser]="curUser"
                           (processRstChange)="handleProcessRst($event)"
                           >
</kylin-user-manager-detail>

<kylin-user-modify-password *ngIf="isVisiblePassword"
                            [(isVisible)]="isVisiblePassword"
                            [userInfo]="selectedUser">
</kylin-user-modify-password>
